<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="ru">
<head>
    <meta charset="UTF-8">
    <title>Edit</title>
</head>
<div th:fragment="entities-list" xmlns:th="http://www.thymeleaf.org" th:remove="tag" id="entities-list">
    <table class="table table-hover table-bordered col-xl">
        <thead class="tab-header-area">
        <tr>
            <th th:each="caption:${captions}" th:if="${!caption.hide&&!caption.masked}">
                <strong>
                    <div th:text="${caption.label}"></div>
                </strong></th>
            <th><strong>Edit</strong></th>
            <th><strong>Delete</strong></th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="entity:${entities}">
            <td th:each="caption:${captions}" th:if="${!caption.hide&&!caption.masked}"
                th:text="${__'entity.' + ${caption.name}__}"></td>
            <td>
                <a th:href="@{/entities?id={id}&entityClass={class}(id=${entity.id},class=${#httpServletRequest.getParameter('entityClass')})}">Edit</a>
            </td>
            <td>
                <a th:href="@{/entities/delete?id={id}&entityClass={class}(id=${entity.id},class=${#httpServletRequest.getParameter('entityClass')})}">Delete</a>
            </td>
        </tr>
        </tbody>
    </table>
</div>
</html>